package controllers;

import java.util.Date;

import models.Contract;
import models.Project;

public class Contracts extends Application {
	
	public static void saveContract(Contract contract){
		contract.createdTme = new Date();
		contract.save();
		ok();
	}
	public static void deleteContract(long id){
		Contract.findById(id)._delete();
		ok();
	}

}
